package com.jumi.microservice.service;

import com.jumi.microservice.domain.*;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@RequestMapping("/IMessage")
public interface IMessageService {
    /**
     * 消息发送
     */
    @PostMapping(value = "/messageSend")
    Boolean messageSend(MessageBody messageBody);

    /**
     * 所有用户消息发送
     */
    @PostMapping(value = "/messageAllSend")
    Boolean messageAllSend(AppMessageAll appMessageAll);

    /**
     * 短信消息发送
     */
    @PostMapping(value = "/messageSmsSend")
    Boolean messageSmsSend(MessageSmsQuery messageSmsQuery);
    /**
     * 查询消息模板列表
     */
    @PostMapping(value = "/messageTemplateList")
    List<MessageTemplate> messageTemplateList();

    /**
     * 查询单条消息模板信息
     */
    @PostMapping(value = "/messageTemplateOne")
    MessageTemplate messageTemplateOne(Long id);
}
